class Classes {
    constructor(name) {
        this.name = name;
    }
    action(params) {
        return `${this.name}在${params}`;
    }
}
let c = new Classes('计算机2201');
console.log(c.action("唱歌"));
class Students extends Classes {
    constructor(name) {
        super(name);
    }
    work(params) {
        return `${this.name}在${params}`;
    }
}
let s = new Students("小李");
console.log(s.work("考试"));
